<template>
  <div class="shop-box">
    <div class="left">
      <router-link to="/Limit">
        <img src="../../assets/index-img/shop1.jpg" alt="" />
      </router-link>

      <img src="../../assets/index-img/shop4.jpg" alt="" />
    </div>
    <div class="right">
      <img src="../../assets/index-img/shop2.jpg" alt="" />
      <img src="../../assets/index-img/shop3.jpg" alt="" @click="jifen" />

      <img src="../../assets/index-img/shop5.jpg" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: "shop",
  data() {
    return {};
  },
  methods: {
    jifen() {
      this.username = sessionStorage.getItem("username");
      console.log(this.username);
      if (this.username != null) {
        this.$router.push({ path: "/Integral" });
      } else {
        this.$router.push({ path: "/Login" });
      }
    },
  },
};
</script>
<style>
body {
  padding: 0;
  margin: 0;
}
* {
  padding: 0;
  margin: 0;
}

.shop-box {
  width: 100%;
  height: 2.8rem;
  background-color: #fff;
  display: flex;
  margin-top: 0.05rem;
  justify-content: space-between;
}
.left,
.right {
  width: 49.8%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
</style>
